package com.mou.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mou.dto.MyOrderDTO;
import com.mou.dto.OtherOrderDTO;
import com.mou.dto.TransactionOrderDTO;
import com.mou.entity.Transaction;
import com.mou.vo.MyOrderVO;
import com.mou.vo.TransactionVO;

import java.util.List;

public interface TransactionService extends IService<Transaction>
{
    TransactionVO getOrderDetail(TransactionOrderDTO transactionOrderDTO);

    void add(Transaction transaction);

    List<MyOrderVO> getMyOrder(MyOrderDTO myOrderDTO);

    void cancel(Integer id);

    void accept(Integer id);

    void startDelivery(Integer id);

    void confirmDelivery(Integer id);

    List<MyOrderVO> getOtherOrder(OtherOrderDTO otherOrderDTO);
}
